package view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.util.ResourceBundle;

import javax.swing.JLabel;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;

public class StatusBar extends JLabel {
	private static final long serialVersionUID = -4038115103247581356L;

	private ResourceBundle rLabels;
	public StatusBar(ResourceBundle rLabels) {
		super();
		super.setPreferredSize(new Dimension(590, 16));
		this.rLabels = rLabels;
		setOpaque(true);
		setBackground(Color.WHITE);
		setFont(new Font("Courier New", Font.PLAIN, 11));
		Border border = LineBorder.createGrayLineBorder();
		setBorder(border);
		setMessage(rLabels.getString("statusReady"));
	}

	public void setMessage(String message) {
		setText("<html><b>" + rLabels.getString("status")+ ":</b> " + message + "</html>");        
	}
}
